<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_category($zone)}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>{$cates[$zone]}</h2>
					<ul class="filter">
						<li><a href="/ajax/manage.php?action=categoryedit&zone={$zone}" class="ajaxlink">Add {$cates[$zone]}</a></li>
					</ul>
				</div>
                <div class="sect">
					<a target='_blank' href='http://www.gorissen.info/Pierre/maps/googleMapLocation.php?lat=10.779601&lon=106.698875&setLatLon=Set'>Link to get GLatLng</a>
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
                    
                    <!--{if $zone=='relay'}-->
					<tr>
                    <th width="50">ID</th>
                    <th width="150">Relay</th>
                    <th width="250">Address</th>
                    <th width="60">GLatLng</th>
                    <th width="250">Contact</th>
                    
					<th width="60" >Letter</th>
					<th width="40" nowrap>Navigation</th>
					<th width="40" nowrap>Sort</th>
					<th width="100">Operation</th>
					</tr>
					<!--{loop $categories $index $one}-->
					<tr ${$index%2?'':'class="alt"'}>
						<td>{$one['id']}</td>
						<td>{$one['czone']}</td>
						<td>{$one['name']}</td>
						<td>{$one['ename']}</td>
						<td>{$one['note']}</td>
                        
						<td>${strtoupper($one['letter'])}</td>
						<td>{$one['display']}</td>
						<td>${intval($one['sort_order'])}</td>
						<td class="op"><a href="/ajax/manage.php?action=categoryedit&id={$one['id']}" class="ajaxlink">edit</a>｜<a href="/ajax/manage.php?action=categoryremove&id={$one['id']}" class="ajaxlink" ask="sure to delete this category？">delete</a></td>
					</tr>
					<!--{/loop}-->
                    
                    <!--{else}-->
                    <tr>
                    <th width="50">ID</th>
                    <th width="250">Name</th>
                    <th width="250">English name</th>
					<th width="60" >Letter</th><th width="150">Group</th>
					<th width="40" nowrap>Navigation</th>
					<th width="40" nowrap>Sort</th>
					<th width="100">Operation</th>
					</tr>
					<!--{loop $categories $index $one}-->
					<tr ${$index%2?'':'class="alt"'}>
						<td>{$one['id']}</td>
						<td>{$one['name']}</td>
						<td>{$one['ename']}</td>
						<td>${strtoupper($one['letter'])}</td>
						<td>{$one['czone']}</td>
						<td>{$one['display']}</td>
						<td>${intval($one['sort_order'])}</td>
						<td class="op"><a href="/ajax/manage.php?action=categoryedit&id={$one['id']}" class="ajaxlink">edit</a>｜<a href="/ajax/manage.php?action=categoryremove&id={$one['id']}" class="ajaxlink" ask="sure to delete this category？">delete</a></td>
					</tr>
					<!--{/loop}-->
                     
                     
                      <!--{/if}-->
					<tr><td colspan="8">{$pagestring}</td></tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
